{extend name="public:head"}
{block name="main"}

<table class="layui-hide" id="all" lay-filter="all" lay-data="{id: 'sousuo'}"></table>

<script type="text/html" id="getType">
    {{#  if(d.type == 'f'){ }} <a class="layui-btn layui-btn-xs layui-btn-normal">分期 </a> {{#  } }}
    {{#  if(d.type == 'd'){ }} <a class="layui-btn layui-btn-xs">单期 </a> {{#  } }}
</script>

<script>
    layui.use(['table','layer','form','laydate'], function(){
        var table = layui.table;
        var nameData = getQueryVariable('name')
        var signData = getQueryVariable('sign')
        table.render({
            elem: '#all'
            ,url:'/admin/Sign/allSignDataApi?model_str=Popularize&name='+nameData+'&sign='+signData
            ,toolbar: '#toolbarDemo'
            ,limit: 14
            ,limits: [10, 20, 40, 80, 160, 320, 640, 1280]
            ,cols: [[
                {type: 'checkbox', fixed: 'left'}
                ,{field:'from', title:'推广方',width: 90}
                ,{field:'sign', title:'标识码',width: 90}
                ,{field:'ip', title:'来源ip'}
                ,{field:'type', title:'贷款类型', toolbar: '#getType',width: 90}
                ,{field:'address', title:'来源地区'}
                ,{field:'add_time', title:'添加时间'}
                ,{field:'uodate_time', title:'最后时间'}
                ,{field:'record_id', title:'访问记录id'}
                ,{field:'ip_count', title:'当天ip次数'}
                ,{fixed: 'right', title:'操作', toolbar: '#barDemo', width:150 , align: 'center'}
            ]]
            ,page: true
        });
    });
</script>


{/block}